package com.huaxin.hxmoduleworkorder.mapping;

import com.huaxin.hxmoduleworkorder.dto.request.MaintenanceOrderElectricianTaskResultCreateReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.MaintenanceOrderElectricianTaskResultUpdateReqDTO;
import com.huaxin.hxmoduleworkorder.models.MaintenanceOrderElectricianTaskResult;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface MaintenanceOrderElectricianTaskResultMapping {
    @Mapping(target = "signImageUrl", ignore = true)
    MaintenanceOrderElectricianTaskResult toEntity(MaintenanceOrderElectricianTaskResultCreateReqDTO in);

    @Mapping(target = "signImageUrl", ignore = true)
    void updateEntity(MaintenanceOrderElectricianTaskResultUpdateReqDTO in, @MappingTarget MaintenanceOrderElectricianTaskResult entity);
}